package com.wxh.config;

import feign.Contract;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * UserFeignClient配置
 *
 * @author wxh
 */
@Configuration
public class UserFeignConfig {

    /**
     * 默认协议
     *
     * @return
     */
    @Bean
    public Contract feignContract() {
        return new feign.Contract.Default();
    }

    /**
     * 配置feign输出日志级别
     *
     * @return
     */
    @Bean
    Logger.Level feignLoggerLevel() {
        // 设置日志
        return Logger.Level.FULL;
    }

}
